package com.zxc.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxc.dto.CustomerConstitute;
import com.zxc.entity.CstCustomer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CstCustomerMapper extends BaseMapper<CstCustomer> {
    //根据客户名称和其客户经理进行模糊查询
    List<CstCustomer> getCstCustomerList(@Param("skipCount") Integer skipCount, @Param("pageSize") Integer pageSize, @Param("custName")String searchName);

    List<CstCustomer> getCstCustomerListByCondition(@Param("skipCount") Integer skipCount, @Param("pageSize") Integer pageSize, @Param("custName")String searchName);

    List<CstCustomer> getCstCustomerListByConditionAndUserId(@Param("skipCount") Integer skipCount, @Param("pageSize") Integer pageSize, @Param("custName")String searchName, @Param("userId") Integer userId);

    //根据客户等级或者信用进行模糊查询（模糊查询待实现） TODO
    List<CustomerConstitute> selectCstCustomerConstitute();

    List<String> selectCustLevel();
}